package com.bereborn.junit.service;

/**
 * 业务方法
 */
public class UserService {

    public String login(String username, String password) {
        if("admin".equals(username) && "123456".equals(password)){
            return "登录成功";
        }else {
            return "登录用户名或密码错误";
        }
    }


    public void fingList(){
//        System.out.println(10/0);
        System.out.println("查询所哟用户成功~~");
    }

}
